package com.nice.nice201110.mapper;

import com.nice.nice201110.entity.TOrganization;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface TOrganizationMapper {

    int deleteByPrimaryKey(Integer id);
    TOrganization selectByMain();
    int insertSelective(TOrganization record);
    TOrganization selectByPrimaryKey(Integer id);
    List<TOrganization> selectByParent(Integer parentid);  // 根据上级组织id获取组织
    List<TOrganization> selectByPrimaryKey(); //查询组织数据
    int updateByPrimaryKeySelective(TOrganization record);

}